﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

using ProjectPigs.Util;

namespace ProjectPigs.Input
{
    class SystemInput
    {
        static Boolean keyLock = false;

        public static void update(KeyboardState key)
        {
  
                if (key.IsKeyDown(Keys.F1) && !keyLock)
                {
                    Debug.toggleVisibility();
                    keyLock = true;
                }
                else if (key.IsKeyUp(Keys.F1))
                {
                    keyLock = false;
                }
            

            
        }
    }
}
